<ul>
	<li id="1">
		Design & Development
	</li>
<ul>
<?php

echo($tree_string);
?>





<!--/*/*<?php
$db_name = "erp";
$db_user_name="root";
$db_password="";

$con = mysql_connect('localhost',$db_user_name,$db_password);
if(!$con){
	die (mysql_error()."Connection Error.");
}
$db_select = mysql_select_db($db_name,$con);
if(!$db_select){die(mysql_error());}


// $parent is the parent of the children we want to see 

// $level is increased when we go deeper into the tree, 

//- used to display a nice indented tree 

function display_children($parent, $level) { 

    // retrieve all children of $parent 

    $result_id = mysql_query('SELECT id FROM proposal_category_tree '. 

                           'WHERE parent_id="'.$parent.'";'); 
	//echo("<pre>");
	while ($row = mysql_fetch_array($result_id))
		{
			$result = mysql_query('SELECT category_name FROM proposal_category_name '.'WHERE id="'.$row['id'].'";'); 					   		
		}				   
						   
	
    // display each child 

    while ($row = mysql_fetch_array($result)) { 

        // indent and display the title of this child 

        //echo("|");
		echo str_repeat('&nbsp;',$level).$row['title']."</br>"; 
		
        // call this function again to display this 

        // child's children 

        display_children($row['title'], $level+1); 

    } 

} 
display_children('',0);
?>

 















<!--/*/*<h2>	
				<span id="0">
					Categories
				</span>
			</h2>	
				<ul>
					<li id="1">
						Design & Development
					</li>
						<ul>
							<li id="2">
								Web Development
							</li>
								<ul>					
									<li id="3">
										Web 2.0
									</li>
										
										<li id="4">
											Web Portal
										</li>
										
										<li id="5">
											Mobile Apps Development
										</li>
										
										<li id="6">
											ERP Development
										</li>
									</ul>
								<li id="7">
									CMS Development
								</li>
									<ul>
										<li id="8">
											Wordpress
										</li>
										
										<li id="9">
											Joomla
										</li>
										
										<li id="10">
											Open CMS
										</li>
										
										<li id="11">
											Drupal
										</li>
										
										<li id="12">
											Concrete5
										</li>
										
										<li id="13">
											Typo3
										</li>
										
										<li id="14">
											Contoo
										</li>
											<ul style="list-style: none">
												<li id="module_1"><i class="icon-file-text-alt"></i> 
													Module 1
												</li>
											</ul>
									</ul>
								<li id="15">
									E-Commerce
								</li>
									<ul>
										<li id="16">
											OS Commerce
										</li>
										
										<li id="17">
											Magento
										</li>
										
										<li id="18">
											Open Cart
										</li>
									</ul>
								<li id="19">
									Graphic Design
								</li>
									<ul>
										<li id="20">
											Logo
										</li>
										
										<li id="21">
											Cover Design
										</li>
										
										<li id="23">
											Poster Design
										</li>
									</ul>
							</ul>
							
							<li id="25">
								Domain & Hosting
							</li>
							<ul>
								<li id="26">
									Managed Hosting
								</li>
									<ul>
										<li id="27">
											Shared Hosting
										</li>
										
										<li id="28">
											Grid Hosting
										</li>
										
										<li id="29">
											VPS Hosting
										</li>
										
										<li id="30">
											Dedicated Hosting
										</li>
									</ul>
								<li id="31">
									CMS Hosting
								</li>	
								<li id="32">
									Hosting Resources
								</li>
									<ul>
										<li id="33">
											Website Maintenance
										</li>
									</ul>	
							</ul>		
							<li id="34">
								Internet Marketing
							</li>
									<ul>
										<li id="35">
											SEO Services
										</li>
										<ul>
											<li id="36">
												On Page optimization
											</li>
											
											<li id="37">
												Link Building
											</li>
											
											<li id="38">
												PPC Management
											</li>
											
											<li id="39">
												Inbound Marketing
											</li>
										</ul>
										<li id="40">
											SMO Services
										</li>
										
										<li id="41">
											SEO Content Writing
										</li>
										
										<li id="42">
											Online Marketing
										</li>
									</ul>
						</ul>
						<div id="Rollover"></div>-->*/*/-->*/*/